package com.itheima.service;


import com.itheima.bean.vo.AddUser;
import com.itheima.bean.vo.PageBean;
import com.itheima.bean.vo.Pagination;
import com.itheima.bean.vo.UpdateUser;
import org.springframework.transaction.annotation.Transactional;

//业务层：接口
public interface UserService {
    //分页查询
    public PageBean queryUserByPage(Pagination pagination);


    //添加用户和用户角色
    public boolean addUserAndRole(AddUser user);

    //删除用户
     boolean deleteUser(Integer id);

    //更新用户
    boolean updateUserRole(UpdateUser user);
}
